#!/usr/bin/python
import sys
if len(sys.argv) < 2:
    exit('usage: finfo [filename] ')

import pyfits

for filename in sys.argv[1:]:
    f = pyfits.open(filename)
    print '%s: ' % filename,
    f.info()
    f.close()
